Action hook 'edit_post_{$post->post_type}'

in WP Core File wp-includes/post.php at line 4837

Description

Fires once an existing post has been updated. The dynamic portion of the hook name, `$post->post_type`, refers to the post type slug. Possible hook names include: - `edit_post_post` - `edit_post_page`

Occurrences

Filename Line Number
wp-includes/post.php 4837
wp-includes/post.php 5056
wp-includes/class-wp-customize-manager.php 3109
wp-includes/comment.php 2771

Parameters

Type Name Description
int $post_id Post ID.
WP_Post $post Post object.

PHP Doc

/**
		 * Fires once an existing post has been updated.
		 *
		 * The dynamic portion of the hook name, `$post->post_type`, refers to
		 * the post type slug.
		 *
		 * Possible hook names include:
		 *
		 *  - `edit_post_post`
		 *  - `edit_post_page`
		 *
		 * @since 5.1.0
		 *
		 * @param int     $post_id Post ID.
		 * @param WP_Post $post    Post object.
		 */